//
//  ShareSpecialBtn.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/5/15.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ShareSpecialBtn.h"

@interface ShareSpecialBtn ()

@property (nonatomic,weak) UIImageView *specialImage;

@end

@implementation ShareSpecialBtn

- (void)awakeFromNib
{
    [super awakeFromNib];
    UIImageView *specialImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 47, 20)];
    //specialImage.image = GetImage(@"post_resell");
    self.specialImage = specialImage;
    [self addSubview:specialImage];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.x = 0;
    self.titleLabel.y = self.height-20;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.width = self.width;

    self.imageView.center = CGPointMake(self.width*0.5, self.height*0.5);
    self.specialImage.x = CGRectGetMaxX(self.imageView.frame)-23;
    self.specialImage.y = self.imageView.y;
}

@end
